set(CMAKE_SYSTEM_NAME               Windows)
set(CMAKE_SYSTEM_PROCESSOR          x86_64)

set(CMAKE_AR                        ${WIN_TOOLCHAIN_PATH}x86_64-w64-mingw32-ar${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_ASM_COMPILER              ${WIN_TOOLCHAIN_PATH}x86_64-w64-mingw32-gcc${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_C_COMPILER                ${WIN_TOOLCHAIN_PATH}x86_64-w64-mingw32-gcc${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_CXX_COMPILER              ${WIN_TOOLCHAIN_PATH}x86_64-w64-mingw32-g++${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_LINKER                    ${WIN_TOOLCHAIN_PATH}x86_64-w64-mingw32-ld${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_OBJCOPY                   ${WIN_TOOLCHAIN_PATH}x86_64-w64-mingw32-objcopy${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_RANLIB                    ${WIN_TOOLCHAIN_PATH}x86_64-w64-mingw32-ranlib${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_SIZE                      ${WIN_TOOLCHAIN_PATH}x86_64-w64-mingw32-size${CMAKE_EXECUTABLE_SUFFIX})
set(CMAKE_STRIP                     ${WIN_TOOLCHAIN_PATH}x86_64-w64-mingw32-strip${CMAKE_EXECUTABLE_SUFFIX})

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)